package com.string_;

/**
 * @Author 小闽
 * @Date 2024/9/29 20:17
 * @PackageName: com.string
 * @ClassName: StringExercise09
 * @Description: String练习9
 * @Version 1.0
 */
public class StringExercise09 {
    public static void main(String[] args) {
        String s1 = "苏宁易购";
        String s2 = "java";
        String s5 = "苏宁易购java";
        String s6 = (s1 + s2 ).intern();
        System.out.println(s5 == s6); // true
        System.out.println(s5.equals(s6)); // true
    }
}
